﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TarreOA.TarreOAModels;
using TarreOA.TarreOABLL;

public partial class admin_ShowInfo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(Request.QueryString["type"]=="1")
        {
            Page.Title = "请假原因";
            Label1.Text = "请假原因";
            LeaveInfo leaveInfo = LeaveInfoManager.FindByLeaveInfoId(Convert.ToInt32(Request.QueryString["id"]));
            TextBox1.Text = leaveInfo.LeaveRemark;
        }
        else if (Request.QueryString["type"]=="2")
        {
            Page.Title = "外出原因";
            Label1.Text = "外出原因";
            EgressionInfo egressionInfo = EgressionInfoManager.FindByEgressionInfoId(Convert.ToInt32(Request.QueryString["id"]));
            TextBox1.Text = egressionInfo.EgressionRemark;
        }
        else if (Request.QueryString["type"]=="3")
        {
            Page.Title = "出差地区";
            Label1.Text = "出差地区";
            EvectionInfo evectionInfo = EvectionInfoManager.FindByEvectionInfoId(Convert.ToInt32(Request.QueryString["id"]));
            TextBox1.Text = evectionInfo.EvectionAddress;
        }
    }
}
